﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace SMBCFamilyAssessment.Models
{
    [Table("Question")]   
    public class Question
    {

        [ScaffoldColumn(false)]
        [Key]
        public int QuestionId { get; set; }
        [Display(Name = "Question Category Description")]
        public int QuestionSetId { get; set; }
        public virtual QuestionSet QuestionSet { get; set; }
        [DataType(DataType.Text)]
        [StringLength(1000)]
        [Display(Name = "Question Description")]
        public string QuestionDescription { get; set; }
        [ScaffoldColumn(false)]
        public DateTime? CreatedDateTime { get; set; }
        [Display(Name = "Date Ended (DD/MM/YYYY)")]
        public DateTime? EndedDateTime { get; set; }
        [ScaffoldColumn(false)]
        public string CreatedBy { get; set; }
        [ScaffoldColumn(false)]
        public string UpdatedBy { get; set; }
        
    }
}